package com.liao.seckill.service.impl;

import com.liao.seckill.dao.GoodsDao;
import com.liao.seckill.pojo.TbGoods;
import com.liao.seckill.service.GoodsService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServiceImpl implements GoodsService {

    private GoodsDao goodsDao;

    public GoodsServiceImpl(GoodsDao goodsDao){
        this.goodsDao = goodsDao;
    }

    @Override
    public List<TbGoods> findAll(){
        return goodsDao.findAll();
    }

}
